package com.csdj.thread;

import java.sql.Time;
import java.util.concurrent.TimeUnit;

public class TicketTest {
    public static void main(String[] args) {
        TicketThread ticket = new TicketThread();
        Thread hn = new Thread(ticket,"黄牛");
        Thread mh = new Thread(ticket,"明猴");
        Thread th = new Thread(ticket,"谭猴");
        hn.start();
        mh.start();
        th.start();


        try {
            TimeUnit.SECONDS.sleep(5);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
